package com.teamsun.entity;

import java.io.Serializable;

/**
 * <p>Excel表头信息实体类</p>
 * <p>前端表格使用easyui展示,表头实体类的属性和easyui中datagrid控件的column属性相同</p>
 */
public class TableHeader implements Serializable{

    /**
     * 列字段名(和数据库中的字段对应)
     */
    private String field;

    /**
     * 列名(页面展示的列名,如有单位带单位)
     */
    private String title;

    /**
     * 列名(不带单位)
     */
    private String aliasTitle;

    /**
     * 列单位
     */
    private String unit;

    /**
     * 列对齐方式
     */
    private String align;

    /**
     * 列是否展示
     */
    private boolean hidden;

    /**
     * 是否动态格式化
     */
    private boolean isDynamicFormatter;

    /**
     * 列宽
     */
    private int width;

    /**
     * 合并行数
     */
    private int rowspan;

    /**
     * 合并列数
     */
    private int colspan;

    /**
     * 下钻信息
     */
    private String formatter;

    /**
     * 排序
     */
    private boolean sortable;

    public String getAliasTitle() {
        return aliasTitle;
    }

    public void setAliasTitle(String aliasTitle) {
        this.aliasTitle = aliasTitle;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAlign() {
        return align;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public boolean isHidden() {
        return hidden;
    }

    public void setHidden(boolean hidden) {
        this.hidden = hidden;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getRowspan() {
        return rowspan;
    }

    public void setRowspan(int rowspan) {
        this.rowspan = rowspan;
    }

    public int getColspan() {
        return colspan;
    }

    public void setColspan(int colspan) {
        this.colspan = colspan;
    }

    public String getFormatter() {
        return formatter;
    }

    public void setFormatter(String formatter) {
        this.formatter = formatter;
    }

    public boolean isSortable() {
        return sortable;
    }

    public void setSortable(boolean sortable) {
        this.sortable = sortable;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public boolean isDynamicFormatter() {
        return isDynamicFormatter;
    }

    public void setDynamicFormatter(boolean dynamicFormatter) {
        isDynamicFormatter = dynamicFormatter;
    }
}
